<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<meta name="apple-mobile-web-app-capable" content="yes">  
	<meta name="apple-mobile-web-app-status-bar-style" content="black">  
	<meta content="telephone=no" name="format-detection">
	<%-- <link rel="stylesheet" href="<%=request.getContextPath()%>/resources/lib/jQuery-tck/css/common.css"/> --%>
	
	<title>Insert title here</title>

	<script type="text/javascript" src="<%=request.getContextPath()%>/resources/common/js/jquery.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/resources/common/js/jquery.dataTables.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/resources/common/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/resources/common/js/bootstrapValidator.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/resources/common/js/common.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/resources/winery/js/winery.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/resources/wineproduct/js/wineproduct_bootstrapValidator.js"></script> 
 	<link rel="stylesheet" href="<%=request.getContextPath()%>/resources/common/css/bootstrap.min.css"/> 
	<link rel="stylesheet" href="<%=request.getContextPath()%>/resources/common/css/jquery.dataTables.min.css"/> 
	<link rel="stylesheet" href="<%=request.getContextPath()%>/resources/common/css/bootstrapValidator.min.css"/> 

</head>
<body>
	
<!-- 	商品名检索<input type="text" id="searchByName" class="search_diy"/></br>
	类型检索<input type="text" id="searchByType" class="search_diy"/> -->
	</br>
	<button   class="btn btn-danger btn-sm" id="deleteAllWinerys">批量删除</button> 
	<button   class="btn btn-primary btn-sm addBtn" id="addWinery_button_id" >新 增</button>
		
	<div>
		<table id="example_winery" class="table table-bordered table-header">
			<thead>
				<tr>
					<th>全选</br><input type="checkbox" name="allChecked" /></th>
					<th>id</th>
					<th>name</th>
					<th>detail</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
			</tbody>		
		</table>
	</div>
	<!-- 引入新增bootstrap弹框jsp -->
<%-- 	<jsp:include page="list_add.jsp"></jsp:include>
	<jsp:include page="list_update.jsp"></jsp:include> --%>
	 			<!-- 	新增页面开始 -->
<div class="modal fade" id="myModal-addWinery-info" tabindex="-1" role="dialog"
                 aria-labelledby="myModalLabel" aria-hidden="true">
         <div class="modal-dialog">
             <div class="modal-content">
                 <div class="modal-header">
                     <button type="button" class="close"
                             data-dismiss="modal" aria-hidden="true">
                         &times;
                     </button>
                     <h4 class="modal-title" >
                        添加
                     </h4>
                 </div>
                 <form class="required-validate" role="form" action="" method="post"  id="winery_add_form_id">
                     <div class="modal-body">
                         <div class="form-group">
                             <label class="col-sm-3 control-label no-padding-right" >公司名称： </label>

                             <div class="col-sm-9">
                     
                                 <input type="text"  class="form-control" id="wineryNameId"  name="name" style="width: 250px" maxlength="15" placeholder="10个汉字以内" />

                             </div>
                         </div>                                                
                     </div>
                     <div class="modal-body">
                         <div class="form-group">
                             <label class="col-sm-3 control-label no-padding-right" >公司详情： </label>

                             <div class="col-sm-9">
                                 <input type="text"  class="form-control" id="wineryDetailId"  name="detail" style="width: 250px" maxlength="15" placeholder="10个汉字以内" />

                             </div>
                         </div>                                                
                     </div>
                     <div class="modal-footer">
                         <button type="button" class="btn btn-default"
                                 data-dismiss="modal">关闭
                         </button><!--onclick="addRole_button_ajax()"  -->
                         <button type="button" id="add_winery_button_id" class="btn btn-primary" >提交</button>
                         
                     </div>
                 </form>
             </div><!-- /.modal-content -->
         </div>
 </div>
	 			<!-- 	修改页面开始 -->
<div class="modal fade" id="myModal-updateWinery-info" tabindex="-1" role="dialog"
                 aria-labelledby="myModalLabel" aria-hidden="true">
         <div class="modal-dialog">
             <div class="modal-content">
                 <div class="modal-header">
                     <button type="button" class="close"
                             data-dismiss="modal" aria-hidden="true">
                         &times;
                     </button>
                     <h4 class="modal-title" >
                      修改
                     </h4>
                 </div>
                 <form class="required-validate" role="form" action="" method="post"  id="winery_update_form_id">
                     <div class="modal-body">
                         <div class="form-group">
                             <label class="col-sm-3 control-label no-padding-right" >公司名称： </label>

                             <div class="col-sm-9">
                     
                                 <input type="text"  class="form-control" id="wineryNameId_update"  name="name" style="width: 250px" maxlength="15" placeholder="10个汉字以内" />
								 <input type="hidden"	id="wineryIdId_update" name="id"/>
                             </div>
                         </div>                                                
                     </div>
                     <div class="modal-body">
                         <div class="form-group">
                             <label class="col-sm-3 control-label no-padding-right" >公司详情： </label>

                             <div class="col-sm-9">
                                 <input type="text"  class="form-control" id="wineryDetailId_update"  name="detail" style="width: 250px" maxlength="15" placeholder="10个汉字以内" />

                             </div>
                         </div>                                                
                     </div>
                     <div class="modal-footer">
                         <button type="button" class="btn btn-default"
                                 data-dismiss="modal">关闭
                         </button><!--onclick="addRole_button_ajax()"  -->
                         <button type="button" id="update_winery_button_id" class="btn btn-primary" >提交</button>
                         
                     </div>
                 </form>
             </div><!-- /.modal-content -->
         </div>
 </div>
            
          
</body>
</html>